/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.ove.openmath.jome.ctrl.amto;

/**
 *
 * @author Mr.Sam
 */
import fr.ove.openmath.jome.ctrl.amto.AbstractMathTreeObject;

/**
* The abstract math tree object of a unary operator.<BR>
* This class serves only as "identifier", because we have postfix or prefix unary operators.
*
* @author © 1999 DIRAT Laurent
* @version 1.0  18/11/1999
*/
public abstract class MapsToUnary extends AbstractMathTreeObject {
    /**
    * The constructor.
    * @param identifier the identifier of the instance.
    * @param token the identifier of the instance by the mean of the event sent.
    */
    public MapsToUnary(String identifier, int token) {
        super(identifier, token);
    }
    
    /**
    * "Flushes" the object as a sequence of events for the building of the model
    */
    public void flush() {
        if (getNbChildren() != 0)
            flushChild(getChild(0), 0);
    }
}
